-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Tests for PR#790 #792
Add Tests for PR#790 #792
Conversation
Co-authored-by: Arpad Borsos <arpad.borsos@sentry.io>
… `helpers/checkpoint_logger/tests/` directory. The file contains two test classes: 1. `TestPrometheusCheckpointLoggerHandler`: This class tests all the methods of the `PrometheusCheckpointLoggerHandler` class. Each test method corresponds to a method in the handler, mocking the appropriate Prometheus metric and verifying that it's called correctly. 2. `TestCheckpointLogger`: This class tests the changes made to the `CheckpointLogger` class, specifically the `submit_subflow` method. It mocks the necessary dependencies and verifies that both Sentry SDK and Prometheus metrics are updated correctly. The tests use the `unittest` framework and extensively use mocking to isolate the code under test from its dependencies.
This PR includes changes to |
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## 2576-create-prometheus-handler #792 +/- ##
==================================================================
- Coverage 98.01% 90.57% -7.44%
==================================================================
Files 442 444 +2
Lines 36582 36671 +89
==================================================================
- Hits 35855 33214 -2641
- Misses 727 3457 +2730
Flags with carried forward coverage won't be shown. Click here to find out more.
|
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 1708 tests with View the full list of failed testspytest
|
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
This PR adds tests for #790
Commits: